﻿#include "mainwindow.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    QList<int> list = {1, 2, 3, 4, 5, 6};
    for (int& one : list)
    {
        qDebug() << one;
        list.pop_back();
    }

    return a.exec();
}
